package com.guandeng.dubbo.services.impl;

import com.guandeng.dubbo.services.BuyTicket;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author guandeng.fan
 * @date 2022/5/11 16:18
 */
@Service
public class BuyTicketProxy implements BuyTicket {
    @Autowired
    private BuyTicketImpl buyTicketImpl;

    @Override
    public void buy(){
        System.out.println("买票");
        buyTicketImpl.buy();
        System.out.println("坐火车");
    }

}
